package cn.stu.cms.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;

import static cn.stu.cms.common.CommonConstants.NO_PARAMS_MSG;

/**
 * 将角色dto设置为
 *
 * @author gh
 * @date 2023/09/25
 */

@Data
public class SetRoleDto {
    /**
     * 用户ID
     */
    @NotNull(message = NO_PARAMS_MSG)
    private Long userId;
    /**
     * 角色ID
     */
    @NotNull(message = NO_PARAMS_MSG)
    private Long roleId;

}
